/**
 *
 */
package com.zhuoyue.elmt.data;

import com.eit.eitsite.common.persistence.DataEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhuoyue.elmt.entity.WbMainPlan;
import org.hibernate.validator.constraints.Length;

import java.util.Date;
import java.util.List;

/**
 * 维保计划Entity
 * @author JiangYH
 * @version 2017-04-17
 */
public class WbMainPlanType  {

	private String sbzcdm;		// 设备注册代码
	private String contractNo;		// 合同编号
    private String deviceAddr; // 设备地址
	private String dwnbbh; // 单位内部编号
	private Date effectiveDate; // 合同开始日期
	private Date expirationDate; // 合同结束日期
	private String contractName;

	private List<WbMainPlan> mainPlanList;

	public String getSbzcdm() {
		return sbzcdm;
	}

	public void setSbzcdm(String sbzcdm) {
		this.sbzcdm = sbzcdm;
	}

	public String getContractNo() {
		return contractNo;
	}

	public void setContractNo(String contractNo) {
		this.contractNo = contractNo;
	}

	public String getDeviceAddr() {
		return deviceAddr;
	}

	public void setDeviceAddr(String deviceAddr) {
		this.deviceAddr = deviceAddr;
	}

	public String getDwnbbh() {
		return dwnbbh;
	}

	public void setDwnbbh(String dwnbbh) {
		this.dwnbbh = dwnbbh;
	}

	public List<WbMainPlan> getMainPlanList() {
		return mainPlanList;
	}

	public void setMainPlanList(List<WbMainPlan> mainPlanList) {
		this.mainPlanList = mainPlanList;
	}

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getEffectiveDate() {
		return effectiveDate;
	}

	public void setEffectiveDate(Date effectiveDate) {
		this.effectiveDate = effectiveDate;
	}

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getExpirationDate() {
		return expirationDate;
	}

	public void setExpirationDate(Date expirationDate) {
		this.expirationDate = expirationDate;
	}

	public String getContractName() {
		return contractName;
	}

	public void setContractName(String contractName) {
		this.contractName = contractName;
	}
}